package com.huaxin.device.dto.request;

import com.huaxin.device.dto.enums.validation.ValidCircuitBreakerAction;
import com.huaxin.device.dto.request.base.BasePageReqDTO;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;

@Data
@EqualsAndHashCode(callSuper = true)
public class CircuitBreakerSchedulePageListReqDTO extends BasePageReqDTO {
    @Schema(description = "设备实例ID", example = "d123e456-789a-bcde-f012-3456789abcde")
    private String deviceId;

    @Schema(description = "操作类型", example = "open")
    @ValidCircuitBreakerAction
    private String action;

    @Schema(description = "是否启用", example = "1")
    private Boolean isEnabled;

    @Schema(description = "组织家族ID", example = "f3b2f8e1-4c5d-4e6f-8b2a-1c2d3e4f5a6b")
    private String familyId;

    @Schema(description = "关键字查询，支持任务名称查询")
    private String keyword;
}
